import CalendarPreview from '../preview'
import CalendarConfig from '../config'
import { DRAG_TYPE } from '../../../../dnd/drag_type'
import { nanoid } from 'nanoid'

const CalendarScheme = {
  meta: {
    id: nanoid(),
    parent: null,
    // key: Math.random(),
    sort: 0,
    name: 'calendar',
    title: '日历',
    type: DRAG_TYPE.public,
    componentPreview: CalendarPreview,
    componentConfig: CalendarConfig
  },
  config: {
    attr: {
      mode: 'month',
      // fullscreen: false
    },
    style: {
      height: '50px',
      width: '100%'
    }
  },
  data: {
    raw: {
      list: []
    },
    context: null
  }
}

export default CalendarScheme;